<div class="user-r-title clearfix">
    <div class="common-title f-l">
        <span class="field">钻石送礼物列表</span>
    </div>
</div>
<div class="user-r-content clearfix j-ajax-page">
    <div class="search clearfix" ms-important="vm-search">
        <div class="search-block clearfix">
            <div class="search-list">
                <span>时间</span>
                <input type="text" ms-duplex="@search_data.begin_time" id="begin_time" placeholder="{$data.begin_time}"> <span>-</span> <input type="text" ms-duplex="@search_data.end_time" id="end_time" placeholder="{$data.end_time}">
            </div>
            <div class="search-list">
                <span>推广主播名称</span>
                <input type="text" ms-duplex="@search_data.anchor_name" placeholder="">
            </div>
            <div class="search-list">
                <span>主播类型</span>
                <select id="bm_special">
                    <option value="-1" {if $data.bm_special eq -1}selected="selected"{/if} >全部</option>
                    <option value="1" {if $data.bm_special eq 1}selected="selected"{/if} >签约主播</option>
                    <option value="0" {if $data.bm_special eq 0}selected="selected"{/if} >普通主播</option>
                </select>
            </div>
            <a href="javascript:void(0)" class="btn btn-primary btn-circle" ms-click="search">搜索</a>
        </div>
    </div>
    <div class="ajax-block">
        <table class="uc-table">
            <thead>
                <tr>
                    <th>用户名称</th>
                    <th>主播类型</th>
                    <th>上级推广商</th>
                    <th>送出礼物总价值</th>
                    <th>送出钻石数量</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>
                {foreach from=$data.gift_list item=log}
                <tr>
                    <td>{$log.nick_name}</td>
                    <td>{if $log.bm_special eq 1}签约主播{else}普通主播{/if}</td>
                    <td>{$log.promoter_name}</td>
                    <td>{$log.total_ticket}</td>
                    <td>{$log.total_diamonds}</td>
                    <td><a href='{url r="user#gift_from_detail" p="id=$log.from_user_id&nick_name=$log.nick_name"}' class="table-link">查看明细</a></td>
                </tr>
                {foreachelse}
                <tr>
                    <td colspan="6">
                        <span>暂无数据</span>
                    </td>
                </tr>
                {/foreach}
                {if $data.gift_list}
                <tr>
                    <td>合计</td>
                    <td></td>
                    <td></td>
                    <td>{$data.total_ticket_all}</td>
                    <td>{$data.total_diamonds_all}</td>
                    <td></td>
                </tr>
                {/if}
            </tbody>
        </table>
        <div class="m-page clearfix">
            <div class="m-page-con">
               {$data.page}
            </div>
        </div>
    </div>
</div>

